{{ indent * level }}case {{ grammar_id }}:
{{ indent * (level + 1) }}{{ grammar_id_comment }}
{% if add_debug_code == 1 -%}
{{ indent * (level + 1) }}if (stream->status_callback)
{{ indent * (level + 1) }}{
{{ indent * (level + 2) }}stream->status_callback({{ type_parameter|upper }}, 0, {{ grammar_id }}, ((stream->byte_pos * 8) + stream->bit_count));
{{ indent * (level + 1) }}}

{% endif -%}
{{ indent * (level + 1) }}error = exi_basetypes_decoder_nbit_uint(stream, {{ bits_to_read }}, &eventCode);
{{ indent * (level + 1) }}if (error == 0)
{{ indent * (level + 1) }}{
{{ indent * (level + 2) }}switch (eventCode)
{{ indent * (level + 2) }}{
{{ event_content }}
{{ indent * (level + 2) }}default:
{{ indent * (level + 3) }}error = EXI_ERROR__UNKNOWN_EVENT_CODE;
{{ indent * (level + 3) }}break;
{{ indent * (level + 2) }}}
{{ indent * (level + 1) }}}
{{ indent * (level + 1) }}break;
